#include "IGraphics.hpp"
#include "GraphicsGL.hpp"

namespace Graphics
{
	IGraphics* IGraphics::s_pInstance = NULL;

	IGraphics* IGraphics::Instance()
	{
		if (IGraphics::s_pInstance == NULL)
			IGraphics::s_pInstance = new GraphicsGL();

		return Graphics::IGraphics::s_pInstance;
	}


	void IGraphics::Delete()
	{
		if (IGraphics::s_pInstance)
		{
			delete IGraphics::s_pInstance;
			IGraphics::s_pInstance = NULL;
		}
	}
}
